<?php
namespace app\modules\content\models;

use yii\db\ActiveRecord;
use yii;

class Evaluation extends ActiveRecord
{
    public static function tableName()
    {
        return '{{%evaluation}}';
    }

    /**
     * @Title  [获取评价]
     * @Author Don
     * @Date   2021-04-13
     * @return [type]
     */
    public function getEvaluationList($limit)
    {
        $data = self::find()->asArray()->orderBy('sort asc')->limit($limit)->all();
        return $data;
    }

}